package com.qf.pck.controller;

import com.qf.pck.service.PackageOrderService;
import com.qf.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhu
 * @since 2023-10-27
 */
@RestController
@RequestMapping("/package-order")
@CrossOrigin
public class PackageOrderController {

    @Autowired
    private PackageOrderService packageOrderService;

    @GetMapping("order/{pckId}")
    public R<String> order(@PathVariable String pckId){

        return packageOrderService.order(pckId);

    }





}
